﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Brand_List.aspx.cs" Inherits="TimKen.Web.Admin.Brand.Brand_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
    <script type="text/javascript">
        function ShowMsg(v) {
            var valueText = v.parentNode.parentNode.previousSibling.childNodes[2].childNodes[1]
            if (valueText !== undefined) {
                //                alert(v.title + "" + valueText.title);
                document.getElementById("hidValue").value = (v.title + ":" + valueText.title);
            }
            else {
                return false;
            }
        } 
    </script>
    <span class="action-span"><a href="Brand_Add.aspx">
        <%=GetLangString("Add")%></span>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <%=GetLangString("MenuBrandList")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <div class="list-div">
        <!-- 产品列表 -->
        <asp:HiddenField ID="hidValue" runat="server" ClientIDMode="Static" Value="sssssssssssss" />
        <asp:GridView ID="grdBrand" runat="server" AutoGenerateColumns="False" DataKeyNames="BrandID"
            PageSize="15" AllowSorting="True" CssClass="grid" OnRowCommand="grdBrand_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%=GetLangString("BrandName")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Name")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("ody")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%--             <img src="../images/arrow_up.png" width="15px" height="15px" title='<%#Eval("brandID")%>' />--%>
                        <%--                    <img src="../images/arrow_down.png" width="15px" height="15px" />--%>
                        <asp:ImageButton ID="btnOrd_Up" ImageAlign="AbsMiddle" runat="server" ImageUrl="../images/arrow_up.png"
                            Width="15px" Height="15px" BorderStyle="None" ToolTip='<%#Eval("brandID")%>'
                            OnClientClick="return ShowMsg(this)" ClientIDMode="Static" CommandName="ord_up"
                            CommandArgument='<%#Eval("Name")%>' />
                        <%--                      <asp:ImageButton ID="btnOrd_Down" ImageAlign="AbsMiddle" runat="server" ImageUrl="../images/arrow_down.png"
                            Width="15px" Height="15px" BorderStyle="None" ToolTip='<%#Eval("brandID")%>'
                            OnClientClick="return ShowMsg(this)" ClientIDMode="Static" CommandName="ord_down"
                            CommandArgument='<%#Eval("Name")%>' />--%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" ToolTip='<%#GetLangString("DetailInfo")%>'
                            ImageUrl="~/Admin/images/icon_detail.gif" CommandName="EditEvent" CommandArgument='<%#Eval("BrandID")%>' />
                        <asp:ImageButton ID="btnDelete" runat="server" ToolTip='<%#GetLangString("Delete")%>'
                            CommandName="DeleteEvent" CommandArgument='<%#Eval("BrandID")%>' ImageUrl="~/Admin/images/icon_drop.gif"
                            OnClientClick="return deleteConfirm()" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
</asp:Content>
